package com.xuecheng.content.exception;

import com.xuecheng.base.exception.XCPlusBaseException;

/**
 * @description 课程信息保存失败
 * @author 勾新杰
 * @version 1.0
 * @date 2024/12/19 23:04
 */
public class CourseFailedSaveBaseException extends XCPlusBaseException {

    /**
     * 只给自己提供构造器
     */
    CourseFailedSaveBaseException(){
        super(ContentError.COURSE_FAILED_SAVE_BASE.getErrMessage());
    }

    /**
     * 外部静态方法调用，抛出异常
     */
    public static void cast(){
        throw new CourseFailedSaveBaseException();
    }
}
